package com.service;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.SqlSession;

import com.dao.FileDao;
import com.util.MySqlSessionFactory;

public class FileService {
	SqlSession session = MySqlSessionFactory.getSqlSession();
	FileDao dao = session.getMapper(FileDao.class);
	
	public void insertPages(@Param("archive_id") String archive_id,@Param("name") String name) {
		dao.insertPages(archive_id,name);
		session.commit();
	}

	public void delfile(@Param("id") String id) {
		dao.delfile(id);
		session.commit();
		
	}
	
}
